import java.util.*;
public class Main{
    public static void main(String[]args){
        Scanner scan=new Scanner(System.in);
        String str=scan.nextLine();
        char[]arr=str.toCharArray();
        int start=0;
        int end=arr.length-1;
        while(start<end){
            char tmp=arr[start];
            arr[start]=arr[end];
            arr[end]=tmp;
            start++;
            end--;
        }
        System.out.println(arr);
    }
}